package com.wutianyi.datanucleus;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Inventory {
	@Id
	String name = null;
	@OneToMany(cascade = CascadeType.ALL)
	Set<Product> products = new HashSet<Product>();
	
	public Inventory(String name) {
		this.name = name;
	}
	
	public Set<Product> getProducts() {
		return products;
	}
}
